<?xml version="1.0" encoding="UTF-8"?>
<!-- 
    Document   : EC2AddIpPermission
    Created on : Nov 29, 2008, 12:24:35 PM
    Author     : Sean ODell
-->
<jsp:root version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:webuijsf="http://www.sun.com/webui/webuijsf">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
        <webuijsf:page id="page1">
            <webuijsf:html id="html1">
                <webuijsf:head id="head1" title="AWS Manager - Grant IP Permission">
                    <webuijsf:link id="link1" url="/resources/stylesheet.css"/>
                    <webuijsf:script id="js_UtilGetMyIP" url="/UtilGetMyIP.js"/>
                </webuijsf:head>
                <webuijsf:body id="body1" style="-rave-layout: grid">
                    <webuijsf:form id="form1">
                        <div style="left: 0px; top: 0px; position: absolute; width: 100%">
                            <jsp:directive.include file="AWSManagerHeader.jspf"/>
                        </div>
                        <webuijsf:panelLayout id="layoutPanel1" panelLayout="flow" style="border: 1px solid rgb(0, 0, 0); margin: 5px; padding: 5px; left: 2px; top: 74px; position: absolute; width: 500px">
                            <h:panelGrid columns="2" id="gridPanel1">
                                <webuijsf:label id="l_SecurityGroup" text="Select Security Group:"/>
                                <webuijsf:dropDown binding="#{EC2AddIpPermission.ddl_SecurityGroup}" id="ddl_SecurityGroup"
                                    items="#{EC2AddIpPermission.securityGroupsNameOptions}" onChange=""/>
                            </h:panelGrid>
                            <webuijsf:tabSet id="tabSet_EC2_AddIpPermission" lite="true" mini="true" selected="tab_External">
                                <webuijsf:tab actionExpression="#{EC2AddIpPermission.tab_External_action}" id="tab_External" styleClass="Tab1Div_sun4" text="External">
                                    <webuijsf:panelLayout id="layoutPanel2" panelLayout="flow" style="width: 100%">
                                        <webuijsf:alert binding="#{EC2AddIpPermission.al_EC2AddIpPerm}" id="al_EC2AddIpPerm" style="font-size: 12px"/>
                                        <h:panelGrid id="gridPanel10" style="height: 10px"/>
                                        <webuijsf:panelLayout id="layoutPanel4" panelLayout="flow" style="border: 2px solid rgb(204, 255, 204); padding-left: 4px">
                                            <webuijsf:label id="l_ProtocolDetails" style="padding-bottom: 10px; text-decoration: underline" text="Protocol Details"/>
                                            <h:panelGrid id="gridPanel5" style="height: 10px"/>
                                            <h:panelGrid cellpadding="1" columns="2" id="gridPanel2">
                                                <webuijsf:label id="l_Type" text="Type:"/>
                                                <webuijsf:dropDown binding="#{EC2AddIpPermission.ddl_Type}" id="ddl_Type"
                                                    items="#{EC2AddIpPermission.ddl_TypeDefaultOptions.options}"
                                                    onChange="webui.suntheme4_2.common.timeoutSubmitForm(this.form, 'layoutPanel1:tabSet_EC2_AddIpPermission:tab_External:layoutPanel2:layoutPanel4:gridPanel2:ddl_Type');"
                                                    selected="#{EC2AddIpPermission.ddl_TypeDefaultOptions.selectedValue}" valueChangeListenerExpression="#{EC2AddIpPermission.ddl_Type_processValueChange}"/>
                                                <webuijsf:label id="l_Protocol" text="Protocol:"/>
                                                <webuijsf:dropDown binding="#{EC2AddIpPermission.ddl_Protocol}" id="ddl_Protocol" items="#{EC2AddIpPermission.ddl_ProtocolDefaultOptions.options}"/>
                                                <webuijsf:label binding="#{EC2AddIpPermission.l_Port}" id="l_Port" text="Port:" visible="#{EC2AddIpPermission.portVisible}"/>
                                                <webuijsf:textField binding="#{EC2AddIpPermission.tf_Port}" columns="10" id="tf_Port" text="22" visible="#{EC2AddIpPermission.portVisible}"/>
                                            </h:panelGrid>
                                            <h:panelGrid columns="5" id="gp_PortRange">
                                                <webuijsf:label id="label1" text="Port Range:" visible="#{EC2AddIpPermission.portRangeVisible}"/>
                                                <webuijsf:label id="label2" labelLevel="3" text="From" visible="#{EC2AddIpPermission.portRangeVisible}"/>
                                                <webuijsf:textField binding="#{EC2AddIpPermission.tf_PortRangeFrom}" columns="10" id="tf_PortRangeFrom" visible="#{EC2AddIpPermission.portRangeVisible}"/>
                                                <webuijsf:label id="label3" labelLevel="3" text="To" visible="#{EC2AddIpPermission.portRangeVisible}"/>
                                                <webuijsf:textField binding="#{EC2AddIpPermission.tf_PortRangeTo}" columns="10" id="tf_PortRangeTo" visible="#{EC2AddIpPermission.portRangeVisible}"/>
                                            </h:panelGrid>
                                        </webuijsf:panelLayout>
                                        <h:panelGrid id="gridPanel3" style="height: 10px"/>
                                        <webuijsf:panelLayout id="layoutPanel5" panelLayout="flow" style="border: 2px solid rgb(204, 255, 204); padding-left: 4px">
                                            <webuijsf:label id="l_HostDetails" style="text-decoration: underline" text="Host Details"/>
                                            <h:panelGrid columns="2" id="gridPanel6" style="height: 10px">
                                                <h:panelGrid columns="2" id="gridPanel4">
                                                    <webuijsf:radioButtonGroup binding="#{EC2AddIpPermission.rbg_HostType}" id="rbg_HostType"
                                                        items="#{EC2AddIpPermission.rbg_HostTypeDefaultOptions.options}" selected="#{EC2AddIpPermission.rbg_HostTypeDefaultOptions.selectedValue}"/>
                                                </h:panelGrid>
                                                <h:panelGrid columns="2" id="gridPanel7">
                                                    <webuijsf:textField binding="#{EC2AddIpPermission.tf_Host}" id="tf_Host" validatorExpression="#{EC2AddIpPermission.tf_Host_validate}"/>
                                                    <webuijsf:hyperlink id="hl_GetMyIPAddress" onClick="getMyIPAddress()" text="Get My IP Address" toolTip="Get IP Address (opens in new window)"/>
                                                    <webuijsf:textField binding="#{EC2AddIpPermission.tf_Network}" id="tf_Network" validatorExpression="#{EC2AddIpPermission.tf_Network_validate}"/>
                                                </h:panelGrid>
                                            </h:panelGrid>
                                        </webuijsf:panelLayout>
                                        <h:panelGrid id="gridPanel8" style="height: 10px"/>
                                        <h:panelGrid columns="2" id="gridPanel9" width="250">
                                            <webuijsf:button actionExpression="#{EC2AddIpPermission.addIpPermissionExternalBtn_action}"
                                                id="btn_SGExternalPermAdd" style="padding-left: 4px; padding-right: 4px" text="Add"/>
                                            <webuijsf:button actionExpression="#{EC2AddIpPermission.returnSGExternalPermBtn_action}"
                                                id="btn_SGExternalPermReturn" style="padding-left: 4px; padding-right: 4px" text="Return"/>
                                        </h:panelGrid>
                                    </webuijsf:panelLayout>
                                </webuijsf:tab>
                                <webuijsf:tab actionExpression="#{EC2AddIpPermission.tab_Group_action}" id="tab_Group" text="Group">
                                    <webuijsf:panelLayout id="layoutPanel3" style="width: 100%; height: 128px;"/>
                                </webuijsf:tab>
                            </webuijsf:tabSet>
                        </webuijsf:panelLayout>
                    </webuijsf:form>
                </webuijsf:body>
            </webuijsf:html>
        </webuijsf:page>
    </f:view>
</jsp:root>
